package com.pkk.cloud.support.oauth2.client.detail.client.service.impl;

import com.pkk.cloud.support.oauth2.client.detail.client.entity.PenguinOauthClient;
import com.pkk.cloud.support.oauth2.client.detail.client.mapper.PenguinOauthClientMapper;
import com.pkk.cloud.support.oauth2.client.detail.client.service.PenguinOauthClientService;
import java.util.HashMap;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author peikunkun<br>
 * @version V1.0<br>
 * @Title: 客户端基础信息业务类<br>
 * @Description: <><br>
 * @date 2020/3/17 0017 下午 5:57<br>
 * @URL:[]
 */
@Service
public class PenguinOauthClientServiceImpl implements PenguinOauthClientService {

  @Resource
  private PenguinOauthClientMapper penguinOauthClientMapper;

  /**
   * @Description: 依据客户端id查询客户端基本信息
   * @Param: clientId:客户端id
   * @return: com.pkk.cloud.support.oauth.center.client.entity.PenguinOauthClient
   * @Author: peikunkun
   * @Date: 2020/3/17 0017 下午 6:02
   */
  @Override
  public PenguinOauthClient getOauthClientByClientId(String clientId) {
    return penguinOauthClientMapper.getOauthClientByClientId(clientId);
  }
}
